package com.ruoyi.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.domain.Merchants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商家信息表，存储所有参与霸王餐活动的商家信息 Mapper 接口
 * </p>
 *
 * @author jiabao
 * @since 2025-06-24
 */
public interface MerchantsMapper extends BaseMapper<Merchants> {
    int insertWithLocation(Merchants merchants);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    Merchants selectMerchantsWithLocationById(Long id);

    /**
     * 查询多信息by
     * @param merchants
     * @return
     */
    List<Merchants> selectMerchantsList(Merchants merchants);


    int updateMerchants(Merchants merchants);



    int updateMerchantsStatus(@Param("ids") List<Long> ids, @Param("status") Integer status);
}
